<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title>SPARQL Query Results</title>
    <style type="text/css" media="screen">
/*<![CDATA[*/
code {
  font-weight: bold;
  }

#requery {
  margin-top:-1em;
}

#edit {
  border:1px solid #000;
  padding: 1em;
  background-color: #eee;
  font-size: smaller;
  }

#results {
  font-family:"Trebuchet MS", Arial, Helvetica, sans-serif;
  width:100%;
  border-collapse:collapse;
  }
#results td, #results th {
  font-size:1.2em;
  border:1px solid #98bf21;
  padding:3px 7px 2px 7px;
  }
#results th {
  font-size:1.4em;
  text-align:left;
  padding-top:5px;
  padding-bottom:4px;
  background-color:#A7C942;
  color:#fff;
  }
#results tr.even td {
  color:#000;
  background-color:#EAF2D3;
  }
/*]]>*/
    </style>

    <script language="javascript" type="text/javascript">
<!--
    window.onload=function(){
	toggleDisplay('requery');
	var query = document.getElementById('requery');
	var p = document.createElement('p');
	document.body.insertBefore(p, query);
	var input = document.createElement('input');
	input.setAttribute('type', 'checkbox');
	input.setAttribute('onclick', 'toggleDisplay("requery")');
	p.appendChild(input);
	p.appendChild(document.createTextNode(" display query"));
    };
    function toggleDisplay(element){
	s = document.getElementById(element).style
	if(s.display == 'none')
	    s.display = 'block';
	else
	    s.display = 'none';
    }
    function modify(id){
	var path = document.getElementById(id + "_form").getAttribute("action");
	var tr = document.getElementById(id);
	var q = document.getElementById(id + "_query");
	var del = q.value;
	var off = q.value.indexOf(";")
	if (off != -1)
	    del = del.substr(0, off);

	var ns = document.getElementById(id + '_0').childNodes[0].nodeValue;
	var np = document.getElementById(id + '_1').childNodes[0].nodeValue;
	var no = document.getElementById(id + '_2').childNodes[0].nodeValue;

	q.value = del + "; INSERT DATA { " + ns + " " + np + " " + no + " }";
	document.getElementById(id + "_submit").value = "modify";
    }
    function copy (from, to) {
	var children = document.getElementById(from).childNodes;
	var q = "";
	for (var i = 0; i < children.length; i++) {
	    if (children[i].nodeValue != null)
		q = q + children[i].nodeValue + "\n";
	}
	document.getElementById(to).value = q;
    }
-->
    </script>
  </head>
  <body>
    <h1>SPARQL Query Results</h1>
<div id="requery">
  <pre contenteditable="true" id="edit" style="display:block; float:left;">PREFIX stat: &lt;http://purl.org/net/biordfmicroarray/ns#&gt;
prefix affy: &lt;http://bio2rdf.org/ns/affymetrix#&gt;
PREFIX fn: &lt;http://www.w3.org/2005/xpath-functions#&gt;
PREFIX rdfs: &lt;http://www.w3.org/2000/01/rdf-schema#&gt;

select * where { SERVICE &lt;http://hcls.deri.org:8080/openrdf-sesame/repositories/biordfmicroarray&gt;{
?geneLocal a &lt;http://purl.org/net/biordfmicroarray/ns#gene&gt; ;
			stat:probe_set_id ?probeid ;
			rdfs:label	?geneSymbol .
}
BIND(IRI(fn:concat("http://bio2rdf.org/affymetrix:", ?probeid)) as ?probeuri)

service &lt;http://affymetrix.bio2rdf.org/sparql&gt; {
?probeuri &lt;http://bio2rdf.org/ns/affymetrix#xGene_Ontology_Molecular_Function&gt; ?GO; &lt;http://bio2rdf.org/ns/affymetrix#Chromosomal_Location&gt; ?chromLoc .
}
SERVICE &lt;http://go.bio2rdf.org/sparql&gt; {
?GO &lt;http://purl.org/dc/elements/1.1/title&gt; ?gofunction .
}
}
limit 5000</pre>
  <form action="exp" method="get">
    <p>
      <input id="query" name="query" type="hidden" value=""/>
      <input name="media" type="hidden" value="edit"/>
      <input onclick="copy('edit', 'query')" style="margin: 2em;" type="submit" value="re-query"/>
    </p>
  </form>
</div>
<table class="tablesorter" id="results">
  <thead>
    <tr>
      <th>?GO</th>
      <th>?chromLoc</th>
      <th>?geneLocal</th>
      <th>?geneSymbol</th>
      <th>?gofunction</th>
      <th>?probeid</th>
      <th>?probeuri</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>&lt;http://bio2rdf.org/go:0005216&gt;</td>
      <td>"chr4q32-q33"</td>
      <td>&lt;http://purl.org/net/biordfmicroarray/ns#gene240&gt;</td>
      <td>"GRIA2"</td>
      <td>"ion channel activity"</td>
      <td>"205358_at"</td>
      <td>&lt;http://bio2rdf.org/affymetrix:205358_at&gt;</td>
    </tr>
    <tr class="even">
      <td>&lt;http://bio2rdf.org/go:0004872&gt;</td>
      <td>"chr4q32-q33"</td>
      <td>&lt;http://purl.org/net/biordfmicroarray/ns#gene240&gt;</td>
      <td>"GRIA2"</td>
      <td>"receptor activity"</td>
      <td>"205358_at"</td>
      <td>&lt;http://bio2rdf.org/affymetrix:205358_at&gt;</td>
    </tr>
    <tr>
      <td>&lt;http://bio2rdf.org/go:0004970&gt;</td>
      <td>"chr4q32-q33"</td>
      <td>&lt;http://purl.org/net/biordfmicroarray/ns#gene240&gt;</td>
      <td>"GRIA2"</td>
      <td>"ionotropic glutamate receptor activity"</td>
      <td>"205358_at"</td>
      <td>&lt;http://bio2rdf.org/affymetrix:205358_at&gt;</td>
    </tr>
    <tr class="even">
      <td>&lt;http://bio2rdf.org/go:0005234&gt;</td>
      <td>"chr4q32-q33"</td>
      <td>&lt;http://purl.org/net/biordfmicroarray/ns#gene240&gt;</td>
      <td>"GRIA2"</td>
      <td>"extracellular-glutamate-gated ion channel activity"</td>
      <td>"205358_at"</td>
      <td>&lt;http://bio2rdf.org/affymetrix:205358_at&gt;</td>
    </tr>
    <tr>
      <td>&lt;http://bio2rdf.org/go:0004971&gt;</td>
      <td>"chr4q32-q33"</td>
      <td>&lt;http://purl.org/net/biordfmicroarray/ns#gene240&gt;</td>
      <td>"GRIA2"</td>
      <td>"alpha-amino-3-hydroxy-5-methyl-4-isoxazole propionate selective glutamate receptor activity"</td>
      <td>"205358_at"</td>
      <td>&lt;http://bio2rdf.org/affymetrix:205358_at&gt;</td>
    </tr>
    <tr class="even">
      <td>&lt;http://bio2rdf.org/go:0015277&gt;</td>
      <td>"chr4q32-q33"</td>
      <td>&lt;http://purl.org/net/biordfmicroarray/ns#gene240&gt;</td>
      <td>"GRIA2"</td>
      <td>"kainate selective glutamate receptor activity"</td>
      <td>"205358_at"</td>
      <td>&lt;http://bio2rdf.org/affymetrix:205358_at&gt;</td>
    </tr>
    <tr>
      <td>&lt;http://bio2rdf.org/go:0008066&gt;</td>
      <td>"chr4q32-q33"</td>
      <td>&lt;http://purl.org/net/biordfmicroarray/ns#gene240&gt;</td>
      <td>"GRIA2"</td>
      <td>"glutamate receptor activity"</td>
      <td>"205358_at"</td>
      <td>&lt;http://bio2rdf.org/affymetrix:205358_at&gt;</td>
    </tr>
    <tr class="even">
      <td>&lt;http://bio2rdf.org/go:0005198&gt;</td>
      <td>"chrXq22"</td>
      <td>&lt;http://purl.org/net/biordfmicroarray/ns#gene290&gt;</td>
      <td>"PLP1"</td>
      <td>"structural molecule activity"</td>
      <td>"210198_s_at"</td>
      <td>&lt;http://bio2rdf.org/affymetrix:210198_s_at&gt;</td>
    </tr>
    <tr>
      <td>&lt;http://bio2rdf.org/go:0003677&gt;</td>
      <td>"chr12q23"</td>
      <td>&lt;http://purl.org/net/biordfmicroarray/ns#gene308&gt;</td>
      <td>"ELK3"</td>
      <td>"DNA binding"</td>
      <td>"221773_at"</td>
      <td>&lt;http://bio2rdf.org/affymetrix:221773_at&gt;</td>
    </tr>
    <tr class="even">
      <td>&lt;http://bio2rdf.org/go:0003700&gt;</td>
      <td>"chr12q23"</td>
      <td>&lt;http://purl.org/net/biordfmicroarray/ns#gene308&gt;</td>
      <td>"ELK3"</td>
      <td>"transcription factor activity"</td>
      <td>"221773_at"</td>
      <td>&lt;http://bio2rdf.org/affymetrix:221773_at&gt;</td>
    </tr>
    <tr>
      <td>&lt;http://bio2rdf.org/go:0043565&gt;</td>
      <td>"chr12q23"</td>
      <td>&lt;http://purl.org/net/biordfmicroarray/ns#gene308&gt;</td>
      <td>"ELK3"</td>
      <td>"sequence-specific DNA binding"</td>
      <td>"221773_at"</td>
      <td>&lt;http://bio2rdf.org/affymetrix:221773_at&gt;</td>
    </tr>
    <tr class="even">
      <td>&lt;http://bio2rdf.org/go:0003702&gt;</td>
      <td>"chr12q23"</td>
      <td>&lt;http://purl.org/net/biordfmicroarray/ns#gene308&gt;</td>
      <td>"ELK3"</td>
      <td>"RNA polymerase II transcription factor activity"</td>
      <td>"221773_at"</td>
      <td>&lt;http://bio2rdf.org/affymetrix:221773_at&gt;</td>
    </tr>
    <tr>
      <td>&lt;http://bio2rdf.org/go:0003714&gt;</td>
      <td>"chr12q23"</td>
      <td>&lt;http://purl.org/net/biordfmicroarray/ns#gene308&gt;</td>
      <td>"ELK3"</td>
      <td>"transcription corepressor activity"</td>
      <td>"221773_at"</td>
      <td>&lt;http://bio2rdf.org/affymetrix:221773_at&gt;</td>
    </tr>
    <tr class="even">
      <td>&lt;http://bio2rdf.org/go:0032422&gt;</td>
      <td>"chr12q23"</td>
      <td>&lt;http://purl.org/net/biordfmicroarray/ns#gene308&gt;</td>
      <td>"ELK3"</td>
      <td>"purine-rich negative regulatory element binding"</td>
      <td>"221773_at"</td>
      <td>&lt;http://bio2rdf.org/affymetrix:221773_at&gt;</td>
    </tr>
    <tr>
      <td>&lt;http://bio2rdf.org/go:0016491&gt;</td>
      <td>"chr15q25"</td>
      <td>&lt;http://purl.org/net/biordfmicroarray/ns#gene403&gt;</td>
      <td>"COX5A"</td>
      <td>"oxidoreductase activity"</td>
      <td>"203663_s_at"</td>
      <td>&lt;http://bio2rdf.org/affymetrix:203663_s_at&gt;</td>
    </tr>
    <tr class="even">
      <td>&lt;http://bio2rdf.org/go:0046872&gt;</td>
      <td>"chr15q25"</td>
      <td>&lt;http://purl.org/net/biordfmicroarray/ns#gene403&gt;</td>
      <td>"COX5A"</td>
      <td>"metal ion binding"</td>
      <td>"203663_s_at"</td>
      <td>&lt;http://bio2rdf.org/affymetrix:203663_s_at&gt;</td>
    </tr>
    <tr>
      <td>&lt;http://bio2rdf.org/go:0009055&gt;</td>
      <td>"chr15q25"</td>
      <td>&lt;http://purl.org/net/biordfmicroarray/ns#gene403&gt;</td>
      <td>"COX5A"</td>
      <td>"electron carrier activity"</td>
      <td>"203663_s_at"</td>
      <td>&lt;http://bio2rdf.org/affymetrix:203663_s_at&gt;</td>
    </tr>
    <tr class="even">
      <td>&lt;http://bio2rdf.org/go:0005506&gt;</td>
      <td>"chr15q25"</td>
      <td>&lt;http://purl.org/net/biordfmicroarray/ns#gene403&gt;</td>
      <td>"COX5A"</td>
      <td>"iron ion binding"</td>
      <td>"203663_s_at"</td>
      <td>&lt;http://bio2rdf.org/affymetrix:203663_s_at&gt;</td>
    </tr>
    <tr>
      <td>&lt;http://bio2rdf.org/go:0004129&gt;</td>
      <td>"chr15q25"</td>
      <td>&lt;http://purl.org/net/biordfmicroarray/ns#gene403&gt;</td>
      <td>"COX5A"</td>
      <td>"cytochrome-c oxidase activity"</td>
      <td>"203663_s_at"</td>
      <td>&lt;http://bio2rdf.org/affymetrix:203663_s_at&gt;</td>
    </tr>
    <tr class="even">
      <td>&lt;http://bio2rdf.org/go:0046872&gt;</td>
      <td>"chr15q25"</td>
      <td>&lt;http://purl.org/net/biordfmicroarray/ns#gene404&gt;</td>
      <td>"COX5A"</td>
      <td>"metal ion binding"</td>
      <td>"217451_at"</td>
      <td>&lt;http://bio2rdf.org/affymetrix:217451_at&gt;</td>
    </tr>
    <tr>
      <td>&lt;http://bio2rdf.org/go:0009055&gt;</td>
      <td>"chr15q25"</td>
      <td>&lt;http://purl.org/net/biordfmicroarray/ns#gene404&gt;</td>
      <td>"COX5A"</td>
      <td>"electron carrier activity"</td>
      <td>"217451_at"</td>
      <td>&lt;http://bio2rdf.org/affymetrix:217451_at&gt;</td>
    </tr>
    <tr class="even">
      <td>&lt;http://bio2rdf.org/go:0005506&gt;</td>
      <td>"chr15q25"</td>
      <td>&lt;http://purl.org/net/biordfmicroarray/ns#gene404&gt;</td>
      <td>"COX5A"</td>
      <td>"iron ion binding"</td>
      <td>"217451_at"</td>
      <td>&lt;http://bio2rdf.org/affymetrix:217451_at&gt;</td>
    </tr>
    <tr>
      <td>&lt;http://bio2rdf.org/go:0004129&gt;</td>
      <td>"chr15q25"</td>
      <td>&lt;http://purl.org/net/biordfmicroarray/ns#gene404&gt;</td>
      <td>"COX5A"</td>
      <td>"cytochrome-c oxidase activity"</td>
      <td>"217451_at"</td>
      <td>&lt;http://bio2rdf.org/affymetrix:217451_at&gt;</td>
    </tr>
    <tr class="even">
      <td>&lt;http://bio2rdf.org/go:0016491&gt;</td>
      <td>"chr15q25"</td>
      <td>&lt;http://purl.org/net/biordfmicroarray/ns#gene405&gt;</td>
      <td>"COX5A"</td>
      <td>"oxidoreductase activity"</td>
      <td>"229426_at"</td>
      <td>&lt;http://bio2rdf.org/affymetrix:229426_at&gt;</td>
    </tr>
    <tr>
      <td>&lt;http://bio2rdf.org/go:0046872&gt;</td>
      <td>"chr15q25"</td>
      <td>&lt;http://purl.org/net/biordfmicroarray/ns#gene405&gt;</td>
      <td>"COX5A"</td>
      <td>"metal ion binding"</td>
      <td>"229426_at"</td>
      <td>&lt;http://bio2rdf.org/affymetrix:229426_at&gt;</td>
    </tr>
    <tr class="even">
      <td>&lt;http://bio2rdf.org/go:0009055&gt;</td>
      <td>"chr15q25"</td>
      <td>&lt;http://purl.org/net/biordfmicroarray/ns#gene405&gt;</td>
      <td>"COX5A"</td>
      <td>"electron carrier activity"</td>
      <td>"229426_at"</td>
      <td>&lt;http://bio2rdf.org/affymetrix:229426_at&gt;</td>
    </tr>
    <tr>
      <td>&lt;http://bio2rdf.org/go:0005506&gt;</td>
      <td>"chr15q25"</td>
      <td>&lt;http://purl.org/net/biordfmicroarray/ns#gene405&gt;</td>
      <td>"COX5A"</td>
      <td>"iron ion binding"</td>
      <td>"229426_at"</td>
      <td>&lt;http://bio2rdf.org/affymetrix:229426_at&gt;</td>
    </tr>
    <tr class="even">
      <td>&lt;http://bio2rdf.org/go:0004129&gt;</td>
      <td>"chr15q25"</td>
      <td>&lt;http://purl.org/net/biordfmicroarray/ns#gene405&gt;</td>
      <td>"COX5A"</td>
      <td>"cytochrome-c oxidase activity"</td>
      <td>"229426_at"</td>
      <td>&lt;http://bio2rdf.org/affymetrix:229426_at&gt;</td>
    </tr>
  </tbody>
</table>
  </body>
</html>
